﻿using System;
using System.Collections.Generic;
namespace myFinance.DAL
{
    public interface IDAL : IDisposable
    {
        System.Collections.Generic.ICollection<Entity.IExpence> GetAllExpences();
        double GetRemaining();
        double GetTotalExpence();
        Entity.IExpence GetKnownExpence(string expenceId);
        int SaveExpence(Entity.IExpence expence);
        int SaveIncome(Entity.IIncome income);
        ICollection<KeyValuePair<int, string>> GetKnownExpenceIdAndNames();
        ICollection<KeyValuePair<int, string>> GetAllCategoriesIdAndNames();
        ICollection<KeyValuePair<int, string>> GetAllLocationsIdAndNames();
    }
}
